﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserEdit.ascx.cs" Inherits="Controls_AdminControls_UserEdit" %>
<table class="popup_content">
    <tr>
        <td class="label">
            Працівник
        </td>
        <td class="edit">
            <dx:ASPxTextBox ID="txtDisplayName" runat="server" SkinID="Required" MaxLength="256">
                <ValidationSettings ValidationGroup="vgSave">
                    <RequiredField ErrorText="Вкажіть імя працівника." />
                </ValidationSettings>
            </dx:ASPxTextBox>
        </td>
    </tr>
    <tr>
        <td class="label">Логін
        </td>
        <td class="edit">
            <dx:ASPxTextBox ID="txtUserName" runat="server" SkinID="Required" MaxLength="128">
                <ValidationSettings ValidationGroup="vgSave">
                    <RequiredField ErrorText="Вкажіть місто" />
                </ValidationSettings>
            </dx:ASPxTextBox>
        </td>
    </tr>
    <tr>
        <td class="label">Пароль
        </td>
        <td class="edit">
            <dx:ASPxTextBox ID="txtPassword" runat="server" SkinID="Required" MaxLength="512" Password="true">
                <ValidationSettings ValidationGroup="vgSave">
                    <RequiredField ErrorText="Вкажіть пароль" />
                </ValidationSettings>
            </dx:ASPxTextBox>
        </td>
    </tr>
    <tr>
        <td class="label">E-mail
        </td>
        <td class="edit">
            <dx:ASPxTextBox ID="txtEmail" runat="server" MaxLength="256"/>
        </td>
    </tr>
    <tr>
        <td class="label" colspan="2">
            <dx:ASPxCheckBox runat="server" ID="chIsAdmin" Text="Адміністратор" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <div class="button">
                <dx:ASPxButton ID="btnCancel" runat="server" Text="Закрити" SkinID="Red" />
            </div>
            <div class="button">
                <dx:ASPxButton ID="btnOk" runat="server" Text="Зберегти" SkinID="Blue" />
            </div>
        </td>
    </tr>
</table>
<dx:ASPxCallback ID="clbkSave" runat="server" />
